<?php
$redis = new \Redis();
$redis->connect('r-bp1j8iku7ngzkfchi2pd.redis.rds.aliyuncs.com', 6379);//连接redis
$redis->auth('Jingtianjifen123456$');//密码验证
var_dump($redis->get('test'));die;